import request from '@/utils/request';

const seqProjectApi = {};

seqProjectApi.listByType = (type) => {
	return request({
		url: '/platform-api/seq-project/list-type/' + type,
		method: 'get',
	})
}
seqProjectApi.list = () => {
	return request({
		url: '/platform-api/seq-project/list',
		method: 'get',
	})
}
seqProjectApi.page = (params) => {
	return request({
		url: '/platform-api/seq-project/page',
		method: 'get',
		params: params,
	})
}
seqProjectApi.add = (params) => {
	return request({
		url: '/platform-api/seq-project',
		method: 'post',
		data: params,
	})
}
seqProjectApi.update = (params) => {
	return request({
		url: '/platform-api/seq-project',
		method: 'put',
		data: params,
	})
}
seqProjectApi.get = (id) => {
	return request({
		url: '/platform-api/seq-project/' + id,
		method: 'get',
	})
}
seqProjectApi.delete = (id) => {
	return request({
		url: '/platform-api/seq-project/' + id,
		method: 'delete',
	})
}

export default seqProjectApi